package com.ktwlsoft.archivemanage.payload.study.subject;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class SaveSubjectClassRequest {

    @ApiModelProperty("可为空, 如果时编辑状态, 不能为空")
    private Long subjectId;

    @NotNull
    private Long classId;

    @NotNull
    @ApiModelProperty("ADD,EDIT,DELETE")
    private String purpose;

    @NotNull
    private Integer sort;

    public SaveSubjectClassRequest() {
    }

    public SaveSubjectClassRequest(@NotNull Long classId, @NotNull String purpose) {
        this.classId = classId;
        this.purpose = purpose;
    }
}
